package com.bw.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.house.dao.HouseNewsDao;
import com.bw.house.entity.HouseNewsEntity;
import com.bw.house.service.HouseNewsService;


@Service("houseNewsService")
public class HouseNewsServiceImpl extends ServiceImpl<HouseNewsDao, HouseNewsEntity> implements HouseNewsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseNewsEntity> page = this.page(
                new Query<HouseNewsEntity>().getPage(params),
                new QueryWrapper<HouseNewsEntity>()
        );

        return new PageUtils(page);
    }

}